package com.javafactroy.kunlong.data.dao;


import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;


public interface GeneralSqlMapper<T> extends Mapper<T> {

    @Select("${sql}")
    List<T> selectSql(String sql) ;

    @Select("${sql}")
    List<Map> generalSelect(String sql);

    List<T> query(@Param("queryParam")  T entity);
    long count(@Param("queryParam")  T entity);

}
